import { IntersectionType } from "@nestjs/mapped-types";
import { PageSize } from "../../dto/all-dto";
import { IsNotEmpty, IsOptional } from "class-validator";

export class FindDictionaryDto extends IntersectionType(PageSize){
  @IsOptional()
  name?: string

  @IsOptional()
  code?: string
}

export class FindDictionaryDataDto {
  @IsNotEmpty()
  code: string
}
